package cn.hxzy.ownerSource;
;
import cn.hxzy.ownerSource.clients.config.MyFeignClientInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
//(exclude = {SecurityAutoConfiguration.class})
@EnableFeignClients(basePackages = "cn.hxzy.ownerSource.clients")
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@MapperScan("cn.hxzy.ownerSource.mapper")
@EnableScheduling
public class OwnerSourceApplication {


    public static void main(String[] args) {
        SpringApplication.run(OwnerSourceApplication.class, args);
    }

    @Bean
    public MyFeignClientInterceptor myFeignClientInterceptor() {
        return new MyFeignClientInterceptor();
    }
}
